how to implement odd numbers in a new array